package com.qymerge.manage.system.dao;

import com.qymerge.manage.system.ro.SysMenuRoleRO;
import com.qymerge.manage.system.ro.SysRoleRO;

import java.util.List;
import java.util.Set;

/**
 * <p>Title: ISysMenuRoleDao</p>
 * <p>Description: 菜单角色</p>
 *
 * @Author cong.zhang
 * @Version 1.0.0
 * @Date 2020/7/26/0026
 * @Time 22:59
 */
public interface ISysMenuRoleDao {

    List<SysMenuRoleRO> list(SysRoleRO ro);

    List<SysMenuRoleRO> findAllByIds(Set<Long> roleIds);

    boolean ifExists(Long menuId, Long roleId);

    int install(SysMenuRoleRO ro);

    void installBatch(List<SysMenuRoleRO> sysMenuRoleROList);

    int remove(Long menuId, Long roleId);

}
